<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      UPower-0.99.11
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.78.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-2020-04-02">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 2020-04-02
      </h4>
      <h3>
        Chapter&nbsp;12.&nbsp;System Utilities
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="unzip.html" title="UnZip-6.0">Prev</a>
          <p>
            UnZip-6.0
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="usbutils.html" title="usbutils-012">Next</a>
          <p>
            usbutils-012
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="sysutils.html" title=
          "Chapter&nbsp;12.&nbsp;System Utilities">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="upower" name="upower"></a>UPower-0.99.11
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to UPower
        </h2>
        <p>
          The <span class="application">UPower</span> package provides an
          interface to enumerating power devices, listening to device events
          and querying history and statistics. Any application or service on
          the system can access the org.freedesktop.UPower service via the
          system message bus.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "https://gitlab.freedesktop.org/upower/upower/uploads/93cfe7c8d66ed486001c4f3f55399b7a/upower-0.99.11.tar.xz">
                https://gitlab.freedesktop.org/upower/upower/uploads/93cfe7c8d66ed486001c4f3f55399b7a/upower-0.99.11.tar.xz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: abe6acb617f11f2e8dbd9846fcf86e24
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 424 KB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 11 MB (add 3MB for tssts)
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: 0.1 SBU (add 0.1 SBU for tests)
              </p>
            </li>
          </ul>
        </div>
        <h3>
          UPower Dependencies
        </h3>
        <h4>
          Required
        </h4>
        <p class="required">
          <a class="xref" href="dbus-glib.html" title=
          "dbus-glib-0.110">dbus-glib-0.110</a>, <a class="xref" href=
          "libgudev.html" title="libgudev-233">libgudev-233</a>, <a class=
          "xref" href="libusb.html" title="libusb-1.0.23">libusb-1.0.23</a>,
          and <a class="xref" href="../postlfs/polkit.html" title=
          "Polkit-0.116">Polkit-0.116</a>
        </p>
        <h4>
          Optional (Required if building GNOME)
        </h4>
        <p class="optional">
          <a class="xref" href="gobject-introspection.html" title=
          "gobject-introspection-1.64.0">gobject-introspection-1.64.0</a>
        </p>
        <h4>
          Optional
        </h4>
        <p class="optional">
          <a class="xref" href="gtk-doc.html" title=
          "GTK-Doc-1.32">GTK-Doc-1.32</a>, <a class="xref" href=
          "python-modules.html#pygobject3" title=
          "PyGObject-3.36.0">PyGObject-3.36.0</a>, <a class="xref" href=
          "python-modules.html#python-dbusmock" title=
          "dbusmock-0.19">dbusmock-0.19</a>, and <a class="ulink" href=
          "https://github.com/martinpitt/umockdev">umockdev</a> (for part of
          the testsuite).
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/upower">http://wiki.linuxfromscratch.org/blfs/wiki/upower</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of UPower
        </h2>
        <p>
          Install <span class="application">UPower</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class="command">./configure --prefix=/usr        \
            --sysconfdir=/etc    \
            --localstatedir=/var \
            --enable-deprecated  \
            --disable-static     &amp;&amp;
make</kbd>
</pre>
        <p>
          To test the results, issue: <span class="command"><strong>make
          check</strong></span>. Some checks may not pass due to missing
          files. Test suite should be run from a local GUI session started
          with dbus-launch.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make install</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <em class="parameter"><code>--enable-deprecated</code></em>: This
          switch enables deprecated functionality which is still needed by
          some applications.
        </p>
        <p>
          <em class="parameter"><code>--disable-static</code></em>: This
          switch prevents installation of static versions of the libraries.
        </p>
        <p>
          <code class="option">--enable-gtk-doc</code>: Use this parameter if
          <span class="application">GTK-Doc</span> is installed and you wish
          to rebuild and install the API documentation.
        </p>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Program:</strong>
              <span class="segbody">upower</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Libraries:</strong>
              <span class="segbody">libupower-glib.so</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directories:</strong>
              <span class="segbody">/etc/UPower, /usr/include/libupower-glib,
              and /var/lib/upower</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="upower-prog" name="upower-prog"></a><span class=
                    "term"><span class=
                    "command"><strong>upower</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is the <span class="application">UPower</span> command
                    line tool.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="libupower-glib" name=
                    "libupower-glib"></a><span class="term"><code class=
                    "filename">libupower-glib.so</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    contains the <span class="application">UPower</span> API
                    functions.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-02-17 14:12:55 -0600
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="unzip.html" title="UnZip-6.0">Prev</a>
          <p>
            UnZip-6.0
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="usbutils.html" title="usbutils-012">Next</a>
          <p>
            usbutils-012
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="sysutils.html" title=
          "Chapter&nbsp;12.&nbsp;System Utilities">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
